package cn.qidisoft.edu.hzjt.service.zyc.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.qidisoft.edu.hzjt.dao.EmployeeMapper;
import cn.qidisoft.edu.hzjt.model.Employee;
import cn.qidisoft.edu.hzjt.service.zyc.IEmpService;

/**
 * 
 * @author zhangwenlaing
 *@date 2018.11.14
 */

@Service
public class EmpServiceImpl implements IEmpService{
    
	@Autowired
	private EmployeeMapper employeeMapper;
	
	@Override
	public List<Employee> getDmplist() {
		
		return employeeMapper.getEmpList();
	}

	@Override
	public Employee getDmpId(Integer dZBSJXM) {
		
		return employeeMapper.queryByPK(dZBSJXM);
	}
	
	@Override
	public Employee getDmpName(String dZBSJXM) {
		
		return employeeMapper.queryByName(dZBSJXM);
	}

}
